import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import request from './utils/requesr.js'
import np from 'number-precision'
import uView from 'uview-ui'

Vue.use(uView)
App.mpType = 'app'

Vue.config.productionTip = false
Vue.prototype.$request = request
Vue.prototype.$np = np

const app = new Vue({
  ...App,
  store
})

// http接口API集中管理引入部分
import httpApi from './utils/http.api.js'
Vue.use(httpApi, app)

app.$mount()

export const main = app
